package com.heyue.demo.test;

import org.junit.jupiter.api.Test;

/**
 * @author fenghe
 * @date 2022/1/14 8:15
 */
public class B extends A {
    int b = 2;
    public B() {
        this(3);
        System.out.println("B无参构造");
    }

    public B(int a ) {
        System.out.println("B有参构造");
    }

    public static void main(String[] args) {

    }
}
